﻿package kabam.rotmg.messaging.impl.outgoing {
import flash.utils.IDataOutput;

import kabam.rotmg.messaging.impl.data.SlotObjectData;
import kabam.rotmg.messaging.impl.data.WorldPosData;

public class InvSwap extends OutgoingMessage {

    public var time_:int;
    public var position_:WorldPosData;
    public var slotObject1_:SlotObjectData;
    public var slotObject2_:SlotObjectData;

    public function InvSwap(_arg1:uint, _arg2:Function) {
        this.position_ = new WorldPosData();
        this.slotObject1_ = new SlotObjectData();
        this.slotObject2_ = new SlotObjectData();
        super(_arg1, _arg2);
    }

    override public function writeToOutput(_arg1:IDataOutput):void {
        _arg1.writeInt(this.time_);
        this.position_.writeToOutput(_arg1);
        this.slotObject1_.writeToOutput(_arg1);
        this.slotObject2_.writeToOutput(_arg1);
    }

    override public function toString():String {
        return (formatToString("INVSWAP", "time_", "position_", "slotObject1_", "slotObject2_"));
    }


}
}
